﻿using System;
using SqlSugar;

namespace Ioacp.Syka.Dbs
{
    [SugarTable("Person_Base_Info", TableDescription = "人员基础信息表")]
    public class StaffInfo
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true,
            ColumnDescription = "员工Id", ColumnDataType = "varchar", Length = 36)]
        public string StaffId { get; set; }

        [SugarColumn(ColumnName = "Name",
            ColumnDescription = "员工姓名", ColumnDataType = "varchar", Length = 20)]
        public string StaffName { get; set; }

        [SugarColumn(ColumnName = "Worker_Sn",
            Length = 50, ColumnDataType = "varchar", ColumnDescription = "人员工号")]
        public string StaffCode { get; set; }

        [SugarColumn(ColumnName = "Gender",
            ColumnDescription = "性别")]
        public Int16 Sex { get; set; }

        [SugarColumn(ColumnName = "Birthday",
            ColumnDescription = "生日")]
        public DateTime Birthday { get; set; }

        [SugarColumn(ColumnName = "Id_Number",
            Length = 18, ColumnDataType = "varchar", ColumnDescription = "身份证号")]
        public string IdCard { get; set; }

        [SugarColumn(ColumnName = "Depart_Id",
            Length = 36, ColumnDataType = "varchar", ColumnDescription = "部门Id")]
        public string DeptId { get; set; }

        [SugarColumn(ColumnName = "Duty_Id",
            Length = 36, ColumnDataType = "varchar", ColumnDescription = "职务Id")]
        public string DutyId { get; set; }

        [SugarColumn(ColumnName = "Work_Type_Id",
            Length = 36, ColumnDataType = "varchar", ColumnDescription = "工种Id")]
        public string WorkTypeId { get; set; }

        [SugarColumn(ColumnName = "Tele_Number",
            Length = 20, ColumnDataType = "varchar", ColumnDescription = "电话")]
        public string Tel { get; set; }

        [SugarColumn(ColumnName = "Address",
            Length = 50, ColumnDataType = "varchar", ColumnDescription = "家庭住址")]
        public string HomeAddress { get; set; }

        [SugarColumn(ColumnName = "position_card",
            Length = 50, ColumnDataType = "varchar", ColumnDescription = "定位卡号")]
        public string PositionCard { get; set; }

        [SugarColumn(ColumnName = "Sync_Flag",
            ColumnDescription = "同步标识(1 新增 2 修改 3 删除)")]
        public Int16 SyncFlag { get; set; }
    }
}